#include "test.h"


void test1()
{
	bit::vector<int> my_vector;
	my_vector.push_back(1);
	my_vector.push_back(2);
	my_vector.push_back(3);
	my_vector.push_back(4);
	my_vector.push_back(5);
	my_vector.push_back(6);
	bit::vector<int>::iterator it = my_vector.begin();
	while (it != my_vector.end())
	{
		cout << *it << " ";
		++it;
	}
}

void test2()
{

	bit::vector<int> my_vector;
	my_vector.push_back(1);
	my_vector.push_back(2);
	my_vector.push_back(3);
	my_vector.push_back(4);
	my_vector.push_back(5);
	my_vector.push_back(6);
	bit::vector<int> tmp;
	tmp = my_vector;
	bit::vector<int>::iterator it = tmp.begin();
	while (it != tmp.end())
	{
		cout << *it << " ";
		++it;
	}

}


void test3()
{

	bit::vector<int> my_vector;
	my_vector.push_back(1);
	my_vector.push_back(2);
	my_vector.push_back(3);
	my_vector.push_back(4);
	my_vector.push_back(5);
	my_vector.push_back(6);
	bit::vector<int> tmp;
	tmp = my_vector;
	tmp[2] = 9;
	tmp.insert(tmp.end(), 65);
	tmp.insert(tmp.begin(), 77);
	tmp.insert(tmp.begin(), 56);
	tmp.insert(tmp.begin(), 789);
	tmp.insert(tmp.begin(), 7741);
	tmp.insert(tmp.begin(), 7567);

	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());
	tmp.erase(tmp.begin());



	// tmp[6] = 10;
	bit::vector<int>::iterator it = tmp.begin();
	while (it != tmp.end())
	{
		cout << *it << " ";
		++it;
	}

}

int main()
{
	
	test3();

	return 0;
}